import request from '@/utils/request'
import { objectToFormData } from '@/utils/form'

export function findSceneSrcCustomList(params) {
  return request({
    url: '/51world/scene/src/custom/findList',
    method: 'get',
    params:params
  })
}

export function saveSceneSrcCustom(data) {
  return request({
    url: '/51world/scene/src/custom/save',
    method: 'post',
    data: objectToFormData(data)
  })
}

export function deleteSceneSrcCustom(params) {
  return request({
    url: '/51world/scene/src/custom/deleteById',
    method: 'get',
    params:params
  })
}


export function findSceneSrcCustomItemList(params) {
  return request({
    url: '/51world/scene/src/custom/findCustomItemList',
    method: 'get',
    params:params
  })
}

export function deleteSceneSrcCustomItem(params) {
  return request({
    url: '/51world/scene/src/custom/deleteCustomItemById',
    method: 'get',
    params:params
  })
}


export function getCustomUnSelectedList(params) {
  return request({
    url: '/51world/scene/src/custom/getUnSelectedList',
    method: 'get',
    params:params
  })
}


export function saveSceneSrcCustomItem(data) {
  return request({
    url: '/51world/scene/src/custom/saveCustomItem',
    method: 'post',
    data
  })
}
